﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BudgetRight.Data.Model
{
    public partial class TransactionEntity : ITransactionEntity
    {
        #region ITransactionEntity Members

        ICategoryEntity ITransactionEntity.Category
        {
            get 
            {
                if (!CategoryReference.IsLoaded)
                {
                    CategoryReference.Load();
                }

                return Category;
            }
        }

        #endregion
    }
}
